package com.ddd.test.dto.query;


import java.io.Serializable;
import java.util.List;
//import net.sf.oval.constraint.NotBlank;
//import net.sf.oval.constraint.NotEmpty;
//import net.sf.oval.constraint.NotNull;
//import net.sf.oval.constraint.Size;


import com.ddd.test.dto.cmd.OrderDTO;

/**
 * 聚合查询服务交互对象
 *
 */
public class SalesOrdersDTO implements Serializable {


//  @NotNull(errorCode = "001", message = "[code]${parameter.not.null}")
//  @NotEmpty(errorCode = "001", message = "[code]${parameter.not.null}")
//  @NotBlank(errorCode = "001", message = "[code]${parameter.not.null}")
  private String salesCode;

//  @Size(min = 5, max = 50, errorCode = "001", message = "[name]${parameter.size.invalid}")
  private String salesName;

  private List<OrderDTO> orders;
  


  private static final long serialVersionUID = 1L;


  public String getSalesCode() {
    return salesCode;
  }

  public void setSalesCode(String salesCode) {
    this.salesCode = salesCode == null ? null : salesCode.trim();
  }

  public String getSalesName() {
    return salesName;
  }

  public void setSalesName(String salesName) {
    this.salesName = salesName == null ? null : salesName.trim();
  }

  public List<OrderDTO> getOrders() {
	return orders;
  }

  public void setOrders(List<OrderDTO> orders) {
	this.orders = orders;
  }
  

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", salesCode=").append(salesCode);
    sb.append(", salesName=").append(salesName);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }
}